#ifndef _RTC_H
	#define _RTC_H
	
#include "stm32f10x.h"

#define up_dowm_fre 999
#define door_ctrl_fre 499
#define up_pulse 799
#define dowm_pulse 599
#define close_pulse 299
#define open_pulse 249

void rtc_init(void);
void pwm_init(void);
void pwm_ctrl(u8 status);
void tim2_init(void);
void tim2_ctrl(u8 status);

#endif